<!---->
<template>
  <div class="title_box">
    <div class="title">{{title}}</div>
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.title_box {
  .title {
    position: relative;
    width: 150px;
    height: 45px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 45px;
    padding: 0 30px;
    margin: 0 auto 40px;
    overflow: hidden;
    color: #333;
    box-sizing: content-box;
    cursor: default;
    user-select: none;

    &::after {
      content: "";
      background: url(../../assets/image/sprite.png) no-repeat;
      background-position: right;
      width: 25px;
      height: 20px;
      position: absolute;
      right: 0;
      top: 50%;
      margin-top: -10px;
      transform: translateX(0);
      transition: transform 300ms ease-in-out;
    }

    &::before {
      content: "";
      background: url(../../assets/image/sprite.png) no-repeat;
      background-position: left;
      width: 25px;
      height: 20px;
      position: absolute;
      left: 0;
      top: 50%;
      margin-top: -10px;
      transform: translateX(0);
      transition: transform 300ms ease-in-out;
    }
    &:hover {
      color: $primary_clr;
      transition: color 300ms ease-in-out;
      &::after {
        content: "";
        transform: translateX(-187px);
      }
      &::before {
        content: "";
        transform: translateX(187px);
      }
    }
  }
}
</style>